﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YTSK.Model
{

    /// <summary>
    /// 税控发票主表
    /// </summary>
    [Serializable]
    public partial class SK_SalebillVouch
    {
        #region Model
        /// <summary>
        /// ID
        /// </summary>
        public int ID { set; get; }
        /// <summary>
        /// 仓库ID
        /// </summary>
        public int IDWarehouse { set; get; }
        /// <summary>
        /// 入库出库标记：1-入库；0-出库
        /// </summary>
        public int bRdFlag { set; get; }
        /// <summary>
        /// 业务类型：01-采购；11-销售出库；02-其他入库；12-其他出库；03-调拨入库；13-调拨出库；
        /// </summary>
        public string cVouType { set; get; }
        /// <summary>
        /// 单据号
        /// </summary>
        public string cCode { set; get; }
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime dDate { set; get; }
        /// <summary>
        /// 客户ID
        /// </summary>
        public int IDCustomer { set; get; }
        /// <summary>
        /// 业务员名称
        /// </summary>
        public string cPerson { set; get; }
        /// <summary>
        /// 业务员电话
        /// </summary>
        public string cPersonMobile { set; get; }
        /// <summary>
        /// 备注
        /// </summary>
        public string cMemo { set; get; }
        /// <summary>
        /// 录入人
        /// </summary>
        public string cMaker { set; get; }
        /// <summary>
        /// 录入时间
        /// </summary>
        public DateTime? dMadeDate { set; get; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string cVerify { set; get; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? dVeriDate { set; get; }
        /// <summary>
        /// 时间戳
        /// </summary>
        public byte[] ts { set; get; }
        /// <summary>
        /// 小票号
        /// </summary>
        public string cDefine1 { set; get; }
        /// <summary>
        /// 来源IP
        /// </summary>
        public string cFromIP { set; get; }
        /// <summary>
        /// 追踪ID
        /// </summary>
        public int iTraceID { set; get; }
        /// <summary>
        /// 税号
        /// </summary>
        public string TaxNo { set; get; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { set; get; }
        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { set; get; }
        /// <summary>
        /// 银行
        /// </summary>
        public string Bank { set; get; }
        /// <summary>
        /// 银行帐号
        /// </summary>
        public string BankAccount { set; get; }
        /// <summary>
        /// 发票类型:增值税专用发票/普通发票/电子发票/不开票
        /// </summary>
        public string cBillType { set; get; }
        /// <summary>
        /// 发票代码
        /// </summary>
        public string fpdm { set; get; }
        /// <summary>
        /// 发票号码
        /// </summary>
        public string fphm { set; get; }
        /// <summary>
        /// 是否作废
        /// </summary>
        public bool bZF { set; get; }
        /// <summary>
        /// 作废日期
        /// </summary>
        public DateTime? dZFDate { set; get; }
        /// <summary>
        /// 作废人
        /// </summary>
        public string cZFPerson { set; get; }
        /// <summary>
        /// 发票状态:0-正常;1-冲红;2-红冲的生成发票;3-作废；4-银商发票；
        /// </summary>
        public int iStatus { set; get; }
        /// <summary>
        /// 结算方式
        /// </summary>
        public string cSettleStyle { set; get; }
        /// <summary>
        /// 客户Email
        /// </summary>
        public string cPersonEmail { set; get; }
        /// <summary>
        /// 年度
        /// </summary>
        public int iYear { set; get; }
        /// <summary>
        /// 月份
        /// </summary>
        public int iMonth { set; get; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string ErrMsg { set; get; }
        /// <summary>
        /// 发票状态：0-手工回写；1-云开票蓝票正在开票；2-Excel导入数据，可以作废；3-云开票蓝票开票成功，不允许删除；
        /// 4-云开票已红冲；5-云开票红冲票正在开票；6=云开票红冲票红冲完成
        /// </summary>
        public int iFpStatus { set; get; }
        /// <summary>
        /// 电票的PDF文件本地路径
        /// </summary>
        public string cUrlLocal { set; get; }
        /// <summary>
        /// 电子票pdf原始路径
        /// </summary>
        public string cUrl { set; get; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string cCusName { set; get; }
        /// <summary>
        /// 发送方式：-1：不发送；0-邮箱；1-手机；2-邮箱及手机
        /// </summary>
        public int iFSType { set; get; }
        /// <summary>
        /// 录入人ID
        /// </summary>
        public int IDMaker { set; get; }
        /// <summary>
        /// 发票请求流水号
        /// </summary>
        public string cFPLS { set; get; }
        /// <summary>
        /// 原发票代码-红字发票专用
        /// </summary>
        public string fpdmOri { set; get; }
        /// <summary>
        /// 原发票号码-红字发票专用
        /// </summary>
        public string fphmOri { set; get; }

        public string cDefine4 { set; get; }
        public string cDefine5 { set; get; }
        public string cDf1 { set; get; }
        /// <summary>
        /// 发票备注
        /// </summary>
        public string cDf10 { set; get; }
        /// <summary>
        /// 顺序号
        /// </summary>
        public int iOrder { set; get; }
        /// <summary>
        /// 新单号
        /// </summary>
        public string cCodeNew { set; get; }

        #endregion Model

    }
}
